package com.xd.cloud.dao.vehicle;

import org.springframework.stereotype.Repository;

import com.xd.cloud.dao.BaseDao;
import com.xd.cloud.entity.vehicle.VehicleTeam;

/**   
 * 功能描述：车辆-车队对应关系Dao
 * @author: wangshanshan   
 * @date: 2017年12月15日 下午1:44:11 
 */
@Repository
public class VehicleTeamDao extends BaseDao<VehicleTeam> {
	
	public VehicleTeam getObject(int team_id, int vehicle_id) {
		String hql = "from VehicleTeam where team_id = ? and vehicle_id = ?";
		return get(hql, new Object[]{team_id, vehicle_id});
	}
}
